$OpenBSD: patch-garglk_launchgtk_c,v 1.2 2013/08/22 20:06:50 sthen Exp $

Remove Linux'ism to figure out the libexec dir.

--- garglk/launchgtk.c.orig	Thu Aug 22 20:12:01 2013
+++ garglk/launchgtk.c	Thu Aug 22 20:13:27 2013
@@ -149,6 +149,10 @@ void winbrowsefile(char *buffer)
 
 void winpath(char *buffer)
 {
+#if defined(__OpenBSD__)
+    char exepath[MaxBuffer] = "${TRUEPREFIX}/libexec/gargoyle/";
+    snprintf(buffer, sizeof(exepath), "%s", exepath );
+#else
     char exepath[MaxBuffer] = {0};
     unsigned int exelen;
 
@@ -161,6 +165,7 @@ void winpath(char *buffer)
     }
 
     strcpy(buffer, exepath);
+#endif
 
     char *dirpos = strrchr(buffer, *DirSeparator);
     if ( dirpos != NULL )
